﻿using com.guojin.core.io.message;
using com.guojin.mj.net;
using com.guojin.mj.net.message.game;
using com.guojin.mj.net.message.login;
using System.Collections;
using System.Collections.Generic;
using UnityEngine;

public class JoinRoomController
{

    private static JoinRoomController instance;
    public static JoinRoomController GetInstance()
    {
        if (instance == null)
        {
            instance = new JoinRoomController();
        }
        return instance;
    }

    public void OnReceiveMsg77(string msg, Message data)
    {
        var jrt = (JoinRoomRet)data;

        if (jrt.result)
        {
            MessageManager.GetInstance().SendMsg126();
        }
        else
        {
            GameRoomModel.GetInstance().RoomID = null;
        }
    }
}
